home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / imp400b.zip / TUTOR_2.TXT < prev   
Text File  |  1990-10-31  |  7KB  |  231 lines

  1. .en    Enable formatting. Once enabled, it cannot be disabled. If
  2. ..    this was not the first command in this file then EVERYTHING
  3. ..    would print.
  4. ..
  5. ..    TUTOR_2.TXT - IMAGEPRINT DEMONSTRATION FILE
  6. ..
  7. ..    Fonts 1 (CUBIC), 18 (Helv-20B) and 24 (Cent-34) are used.
  8. ..
  9. ..    *************
  10. ..
  11. ..    Note  - If you want to print a "literal" copy of your file,
  12. ..    don't use ImagePrint's formatting capabilities.
  13. ..
  14. ..    *************
  15. ..
  16. ..    The next command is the IMMEDIATE ACTION command. The comm-
  17. ..    and following the ".!!" goes into effect immediately. We
  18. ..    use it here to select 12 characters per inch (cpi). If we
  19. ..    selected 12 cpi by placing the backslash command in front
  20. ..    the first text line, the headers on the first page would
  21. ..    print at 10 cpi, the default density, because the headers
  22. ..    are printed before the main text section is analyzed.
  23. .!! \|
  24. ..
  25. ..
  26. ..    This file demonstrates many the ImagePrint formatting and
  27. ..    backslash commands. Type "IP TUTOR_2.TXT" to see the
  28. ..    printed result. Some of the dot formatting commands shown
  29. ..    here don't contribute to the format of the printed output,
  30. ..    e.g. setting a parameter to the default value.
  31. ..
  32. ..    Backslash commands are used without comment because they
  33. ..    are easy to understand and the best way to learn them is to
  34. ..    see them in use. "\-" is a soft hyphen.
  35. ..
  36. ..    Any line starting with a "." is interpreted as a command.
  37. ..    The "." doesn't have to be in the 1st column, but it does
  38. ..    have to be the first printable character on a line. The two
  39. ..    following lines are equivalent:
  40.     .PL 66
  41. .PL 66
  42. ..
  43. ..
  44. ..    If the next printable character is another ".", the line is
  45. ..    ignored. This allows comments to appear in the source text,
  46. ..    but not be printed. This allows private notes, etc.
  47. ..
  48. ..    The two letter command can be separated from the dot in
  49. ..    column 1 by zero or more spaces. The variable parameter (if
  50. ..    one is needed) follows the two letter command, separated
  51. ..    from it by zero or more spaces. Each letter of the command
  52. ..    can be in upper or lower case. A comment can follow the
  53. ..    variable parameter, separated from it by at least one space.
  54. ..    The following page length formatting commands are all equiv-
  55. ..    alent:
  56. ..
  57. .pl 60    comment - set page length to 60 lines
  58.      .    pl60
  59. .    PL    60    set page length to 60 lines
  60. .pl60
  61. .pL60
  62. ..
  63. ..
  64. .ww    Word Wrap -  enable left and right justification within the
  65. ..    left and right margins. This is the default state.
  66. ..
  67. ..
  68. .pl 66    Page Length is 66. This is the default value.
  69. ..
  70. ..
  71. .pn 1    Page Number = 1.  This is the default starting page number.
  72. ..    "&&&" in a header or footer is replaced by the current
  73. ..    page number.
  74. ..
  75. ..
  76. .oe 5    Odd Extra -  Shift everything on odd pages 5 extra columns
  77. ..    to the right. This is just an example.
  78. .ee -5    Even Extra -  Shift everything on even pages 5 columns to
  79. ..    the left. This is just an example.
  80. ..
  81. ..    Set extra spaces back to defaults
  82. .oe    No extra spaces on odd pages.
  83. .ee    No extra spaces on even pages.
  84. ..
  85. ..
  86. .li 8    8 Lines per Inch (lpi). The default is 6 lpi.
  87. .li 6    Change back to 6 lpi. Do not change the inter-line gap
  88. ..    after you have started printing a document because the paper
  89. ..    alignment will not be correct.
  90. ..
  91. ..
  92. .sw 65    Set Width of headers and footers to 65 columns. The left
  93. ..    and right justification and centering of the headers and
  94. ..    footers will occur within this range.
  95. ..
  96. ..
  97. ..    Odd page Headers
  98. .oh
  99. .oh...\bImagePrint formatting\b  \iPage &&\i
  100. .oh___________________________________________________________________________
  101. .oh
  102. .oh
  103. .oh
  104. ..
  105. ..    Even page Headers
  106. .eh
  107. .eh\iPage &&\i    \bImagePrint formatting\b...
  108. .eh___________________________________________________________________________
  109. .eh
  110. .eh
  111. .eh
  112. ..
  113. ..    Odd page Footers
  114. .of
  115. .of
  116. .of___________________________________________________________________________
  117. .of...format demonstration
  118. .of
  119. .of
  120. .of
  121. .of
  122. ..
  123. ..    Even page Footers
  124. .ef
  125. .ef
  126. .ef___________________________________________________________________________
  127. .efformat demonstration...
  128. .ef
  129. .ef
  130. .ef
  131. .ef
  132. ..
  133. ..
  134. ..    You should set the margins you want before any text
  135. ..    centering commands.
  136. ..
  137. .lm 5    Left Margin - Set the left margin to the 5th column.
  138. ..
  139. .rm 60    Right Margin - Set the right margin to the 60th column.
  140. ..
  141. ..
  142. ..    The cancel backslash command "\C" is used to cancel the
  143. ..    bold (\B), underline (\U) and double width (\W) commands.
  144. ..
  145. .ce    Center the next line. Any font can be centered this way.
  146. \24\p\b\wImagePrint\c
  147.  
  148.  
  149. .ce    Center the next line
  150. \18\p\bDot Formatting & Backslash Commands\c\|\01
  151. ..
  152. .lf 2    Line Feed - Space down 2 lines. You could have done the same
  153. ..    thing by putting 2 blank lines here.
  154. ..
  155. .ti 3    Temporary Indent of 3 from left margin for first line in
  156. ..    paragraph.
  157. ..
  158. This is the demon\-str\-ation file for Image\-Print \udot\u
  159. \ufor\-mat\-ting\u and
  160. ..
  161. ..    Here are comment lines right in the middle of the text
  162. ..
  163. \uback\-slash\u com\-mands. This para\-graph is left and right jus\-ti\-fied
  164. be\-cause Word Wrap mode is en\-abled. It could be dis\-abled with the ".NW"
  165. no word wrap com\-mand. The backslash-plus-hyphens are soft hyphens, which are
  166. used to break a word at the end of a line if needed.
  167. Each
  168. word
  169. of
  170. this
  171. sen\-tence
  172. was
  173. typed
  174. on
  175. a
  176. se\-par\-ate
  177. line.
  178. ..
  179. ..
  180. .fp    Force Printing of buffer. You could also force printing
  181. ..    by putting a blank line here.
  182. ..
  183. .pp    New paragraph.
  184. ..
  185. .lm +15  Add 15 to the current Left Margin.
  186. ..
  187. Let's demon\-strate some of the back\-slash com\-mands:
  188. .lf
  189. \wThe\c \bquick\c \w\hbrown\c \ifox\c jumped  \^over\c    \b\ithe\c
  190. \wlazy\c \udog\c. \i\uThe\c  \uquick\c    \bbrown\c  \h\ifox\c
  191. \i\bjumped\c \h\^over\c \i\b\wthe\c \vlazy\c \i\u\w\bdog\c.
  192. No\-tice that the space the back\-slash com\-mands take up in the file is
  193. ac\-count\-ed for when left and right jus\-ti\-fy\-ing text. The ex\-tra width
  194. gen\-er\-at\-ed by the doub\-le width com\-mand is al\-so ac\-count\-ed for.
  195. ..
  196. .lf
  197. .lm 5
  198. .rm -15
  199. The left mar\-gin has just been set back to the 5th co\-lumn and
  200. the right mar\-gin has moved left 15 co\-lumns. The line spac\-ing
  201. .ls 2
  202. dis\-tance has just been changed to cause the text to be printed
  203. on every other line. If for\-mat\-ting has been en\-abled, Image\-Print feeds
  204. the paper to the top of the next page when the end-of-file is reached.
  205. ..
  206. .fp
  207. .ls    Single spaced lines again
  208. .rm +15
  209. ..
  210. The next page has the right margin set to column 25
  211. and the left margin set to 1. This provides a thin
  212. column of text suitable for cutting & pasting into a
  213. multi-column newsletter.
  214. ..
  215. .pa    Unconditionally  move  to  the next page. If the paper has
  216. ..    moved to the top of a new  page and no text has printed yet,
  217. ..    ".pa" will have no effect.
  218. ..
  219. .rm 25
  220. .lm 1
  221. Text here is print\-ed in a sin\-gle nar\-row strip.
  222. This is the end of the tu\-tor\-ial file. Be sure to
  223. look at TUTOR_2.TXT with your word pro\-ces\-sor
  224. be\-cause there are a lot of non-print\-ing com\-ments
  225. and ex\-plan\-ations con\-tained in it...
  226. ..
  227. ..    This is the end of the demonstration.  It was unnecessary
  228. ..    to force a page  feed  (".PA");  the paper  automatically
  229. ..    feeds to the top of the next page when ImagePrint finishes
  230. ..    if formatting had been enabled.
  231.